'''
for n in range(100,1001):
    s=list(n)
    i_he=0
    for i in s :
	     i_he+=int(i)**3
    
    print(f"{n}这是水仙花数") if i_he == int(n)
'''
'''
L1=["tom",3.14,None,True,99,"lucky"]
#使用元数下标输出
print(L1[0])
print(L1[1])
print(L1[2])
print(L1[3])
print(L1[4])
print(L1[5])
#使用for循环输出列表元素
for i in L1 :
    print(i)

for i in range(len(L1)):
    print(L1[i])
#使用while循环输出列表元素
i=0
y=len(L1)
while i < y :
    print(L1[i])
    i+=1
    '''
'''
L1=[]
while True:
    x=input("请输入一个数据：")   
    if x == "":  #不输入任何字符，不是None类型
      break
    L1.append(x)
print(L1)
'''
"""
L1=[]
i=0
while i < 4:
  s=input(f"请输入第{i+1}个整数：")
  i+=1
  L1.append(s)
print(L1)
"""
'''
L=['lb','xq','dq','xs','tsy','lry','yy','bs','gl','wk']
L1=[]
L2=[]

for i in range(5):
    L1.append(L[i])
    L2.append(L[-i-1])
L3=[L1]+[L2]
print(L3)
'''
'''
L=[]
for i in range(1,101)
    L.append(i**2)
print(L)
'''

d1={"姓名":"催化","年龄":"18","籍贯":"hlj","班级":"nsd2102","学校":"tarena","爱好":["a","b","c"]}
'''
for i in d1:
    print(i,d1[i])
'''

for n in range(100,1001):
    s=list(str(n))
    i_he=0
    for i in s :
        i_he+=int(i)**3
        if i_he == n:
           print(f"{n}这是水仙花数") 


